package com.dagong.test;

import java.util.Date;

public class Person {
    private String name;
    private int age;
    private Date birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public long getTime(){
        return  birthday.getTime();
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setDate(int date){
        this.birthday.setDate(date);
    }

    public void setMonth(int month){
        this.birthday.setMonth(month);
    }

    public void setYear(int year){
        this.birthday.setYear(year);
    }
    public Person(){

    }
    public Person(String name, int age, Date birthday) {
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }
    public String disPlay(){
        return  this.name+":" +this.age+":"+this.birthday.toString();
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }
}
